# include <iostream>

using namespace std;

void sort(char*a[]);

int main()
{
    char *a[7]={"c++","java","fortran","python","c","PHP","Basic"};
    int i;

    sort(a);

    for(i=0;i<7;i++)
    {
        cout<<a[i]<<"  ";
    }

    cin>>i;
    return 0;
}

void sort(char *a[])
{
    int i,j;
    char *t;
    for(i=1;i<7;i++)
        for(j=0;j<i;j++)
        {
            if(strcmp(a[i],a[j])>0)
            {
                t=a[i];
                a[i]=a[j];
                a[j]=t;
            }
        }
}
                
   

